public IResponseDTO EditWorkshopFeatures(WorkshopFeaturesVM model) { try { var DbWorkshopFeatures = _mapper.Map <WorkshopFeatures>(model); var entityEntry = _WorkshopFeaturesRepositroy.Update(DbWorkshopFeatures); int save = _unitOfWork.Commit(); if (save == 200) { _response.Data = model; _response.IsPassed = true; _response.Message = "Ok"; } else { _response.Data = null; _response.IsPassed = false; _response.Message = "Not saved"; } } catch (Exception ex) { _response.Data = null; _response.IsPassed = false; _response.Message = "Error " + string.Format("{0} - {1} ", ex.Message, ex.InnerException != null ? ex.InnerException.FullMessage() : ""); } return(_response); }
public IResponseDTO RemoveWorkshopFeatures(WorkshopFeaturesVM WorkshopFeaturesVM) { var depart = _WorkshopFeaturesServices.DeleteWorkshopFeatures(WorkshopFeaturesVM); return(depart); }
public IResponseDTO UpdateWorkshopFeatures(WorkshopFeaturesVM WorkshopFeaturesVM) { var depart = _WorkshopFeaturesServices.EditWorkshopFeatures(WorkshopFeaturesVM); return(depart); }
public IResponseDTO postWorkshopFeatures(WorkshopFeaturesVM WorkshopFeaturesVM) { var depart = _WorkshopFeaturesServices.PostWorkshopFeatures(WorkshopFeaturesVM); return(depart); }