public String Post([Bind]Att_OvertimePermitModel model) { string message = string.Empty; Att_OvertimePermitConfigServices service = new Att_OvertimePermitConfigServices(); var entity = model.CopyData<OvertimePermitEntity>(); service.SaveOvertimePermitConfig(entity,UserLogin ); return message; }
/// <summary> /// [Kiet.Chung] - Lấy dữ liệu theo Id /// </summary> /// <param name="id"></param> /// <returns></returns> public Att_OvertimePermitModel GetById(Guid id) { var model = new Att_OvertimePermitModel(); Att_OvertimePermitConfigServices service = new Att_OvertimePermitConfigServices(); var entity = service.GetOTPermit(UserLogin); if (entity != null) { model = entity.CopyData<Att_OvertimePermitModel>(); } return model; }