public LiveFileType UpdateLiveFileType(LiveFileType liveFileType) { liveFileType = magmaLiveDbContext.Update <LiveFileType>(liveFileType).Entity; magmaLiveDbContext.SaveChanges(); return(liveFileType); }
public LiveFileType CreateLiveFileType(LiveFileType liveFileType) { liveFileType = magmaLiveDbContext.Add <LiveFileType>(liveFileType).Entity;; magmaLiveDbContext.SaveChanges(); return(liveFileType); }
public LiveResponse DeleteLiveFileType(LiveFileType liveFileType) { liveResponse = new LiveResponse(); if (liveFileType.id == 0) { return(liveResponseFactory.CreateLiveResponse(liveResponse, "liveFileType.id is null", HttpStatusCode.BadRequest)); } try { liveFileTypeDao.DeleteLiveFileType(liveFileType); } catch (Exception ex) { return(liveResponseFactory.CreateLiveResponse(liveResponse, ex.Message, HttpStatusCode.BadRequest)); } return(liveResponseFactory.CreateLiveResponse(liveResponse, "", HttpStatusCode.OK)); }
public void DeleteLiveFileType(LiveFileType liveFileType) { magmaLiveDbContext.Remove <LiveFileType>(liveFileType); magmaLiveDbContext.SaveChanges(); }
public ActionResult <string> DeleteLive(LiveFileType liveFileType) { return(liveResponseFactory.CreateLiveControllerResponse(liveFileTypeService.DeleteLiveFileType(liveFileType))); }