/// <summary> /// [Quan.Nguyen] - Lấy dữ liệu Cửa nhận giặt(Lau_Line) theo Id /// </summary> /// <param name="id"></param> /// <returns></returns> public Lau_LineModel GetById(Guid id) { string status = string.Empty; var model = new Lau_LineModel(); ActionService service = new ActionService(UserLogin); var entity = service.GetByIdUseStore<Lau_LineModel>(id, ConstantSql.hrm_lau_sp_get_LineById, ref status); if (entity != null) { model = entity.CopyData<Lau_LineModel>(); } model.ActionStatus = status; return model; }
/// <summary> /// [Tam.Le] - Lấy dữ liệu Lau_Line theo Id trả về cho hàm ajax nhận model /// </summary> /// <param name="id"></param> /// <returns></returns> public JsonResult GetLineById(Guid id) { string status = string.Empty; var model = new Lau_LineModel(); ActionService service = new ActionService(UserLogin); var entity = service.GetByIdUseStore<LMS_LineLMSEntity>(id, ConstantSql.hrm_lau_sp_get_LineById, ref status); if (entity != null) { model = entity.CopyData<Lau_LineModel>(); } //model.ActionStatus = status; //return Json(model, JsonRequestBehavior.AllowGet); return Json(model); }