Felbook.Models.Event.CreateEvent C# (CSharp) Method

CreateEvent() public static method

Create a new Event object.
public static CreateEvent ( global id, global from, global to, global name, global text ) : Event
id global Initial value of the Id property.
from global Initial value of the From property.
to global Initial value of the To property.
name global Initial value of the Name property.
text global Initial value of the Text property.
return Event
        public static Event CreateEvent(global::System.Int32 id, global::System.DateTime from, global::System.DateTime to, global::System.String name, global::System.String text)
        {
            Event @event = new Event();
            @event.Id = id;
            @event.From = from;
            @event.To = to;
            @event.Name = name;
            @event.Text = text;
            return @event;
        }