public static StatusesModel EntityToModel(this Statuses entity, bool virtualActive = false)
        {
            try
            {
                StatusesModel model = new StatusesModel()
                {
                     Name=entity.Name,
                    IsActive = entity.IsActive,
                    Id = entity.Id
                };
                if (virtualActive)
                {
                    model.RoomStatuses = entity.RoomStatuses;

                }
                return model;
            }
            catch (Exception)
            {

                return new StatusesModel();
            }
        }
 public ActionResult RoomStatusInsert(StatusesModel status)
 {
     Statuses st = status.ModelToEnity();
     st.IsActive = true;
     _serviceStatuses.Insert(st);
     return RedirectToAction("RoomStatusList");
 }