Exemple #1
0
        public ResultModel Admin_EventUpdate(EventUpdateModel model)
        {
            if (!string.IsNullOrEmpty(model.Name) &&
                !string.IsNullOrEmpty(model.City) &&
                !string.IsNullOrEmpty(model.StartDate.ToString()) &&
                !string.IsNullOrEmpty(model.Description))
            {
                return(eventDal.Admin_EventUpdate(model));
            }

            else
            {
                return(new ResultModel()
                {
                    IsSuccess = false,
                    Message = "Do not leave empty spaces"
                });
            }
        }