public JsonResult <Models.BlotterSBP_Sheduler> GetBlotterShedulerid(int id) { EntityMapperBlotterSheduler <DataAccessLayer.BlotterSBP_Sheduler, Models.BlotterSBP_Sheduler> mapObj = new EntityMapperBlotterSheduler <DataAccessLayer.BlotterSBP_Sheduler, Models.BlotterSBP_Sheduler>(); DataAccessLayer.BlotterSBP_Sheduler dalBlotterSheduler = DAL.GetBlotterShedularID(id); Models.BlotterSBP_Sheduler products = new Models.BlotterSBP_Sheduler(); products = mapObj.Translate(dalBlotterSheduler); return(Json <Models.BlotterSBP_Sheduler>(products)); }
public bool UpdateSheduler(Models.BlotterSBP_Sheduler blotterSheduler) { bool status = false; if (ModelState.IsValid) { EntityMapperBlotterSheduler <Models.BlotterSBP_Sheduler, DataAccessLayer.BlotterSBP_Sheduler> mapObj = new EntityMapperBlotterSheduler <Models.BlotterSBP_Sheduler, DataAccessLayer.BlotterSBP_Sheduler>(); DataAccessLayer.BlotterSBP_Sheduler ShedulerObj = new DataAccessLayer.BlotterSBP_Sheduler(); ShedulerObj = mapObj.Translate(blotterSheduler); status = DAL.UpdateSheduler(ShedulerObj); } return(status); }