public Studio Put(int id, StudioDTO value) { Studio model = IStudioRepository.Get(id); if (value.Name != null) { model.Name = value.Name; } if (value.ProviderId != 0) { model.ProviderId = value.ProviderId; } return(IStudioRepository.Update(model)); }
public Studio Delete(int id) { Studio studio = IStudioRepository.Get(id); return(IStudioRepository.Delete(studio)); }
public ActionResult <Studio> Get(int id) { return(IStudioRepository.Get(id)); }
public Studio Delete(int id) { Studio model = IStudioRepository.Get(id); return(IStudioRepository.Delete(model)); }