Example #1
0
        public static DataAccessLayer.Entities.Event ModelEventToEntityEvent(Models.Event modelEvent)
        {
            DataAccessLayer.Entities.Event entityEvent = new DataAccessLayer.Entities.Event()
            {
                Card     = ClientUtils.GetClientByTicketId(modelEvent.TicketId),
                Date     = modelEvent.Date,
                Id       = modelEvent.Id,
                Inserter = EmployeeUtils.GetEmployeeByName(modelEvent.EmployeeName),
                Room     = RoomUtils.GetRoomByName(modelEvent.RoomName),
                Ticket   = TicketUtils.GetTicketById(modelEvent.TicketId),
                Type     = modelEvent.Type
            };

            return(entityEvent);
        }