public IActionResult DonXinPhep(LayDonXinPhepNhanVienId model) { var url = $"{Common.Common.ApiUrl}/quanly/LayDonXinPhepNhanVienId"; var responseData = GetMethod(url, model); DonXinPhep donXinPhep = new DonXinPhep(); donXinPhep = JsonConvert.DeserializeObject <DonXinPhep>(responseData); return(View(donXinPhep)); }
public DonXinPhep LayDonXinPhepNhanVienId(LayDonXinPhepNhanVienId model) { try { DynamicParameters parameters = new DynamicParameters(); parameters.Add("@QuanLyId", model.QuanLyId); parameters.Add("@Id", model.Id); return(SqlMapper.Query <DonXinPhep>((SqlConnection)con, "sp_LayDonXinPhepNhanVienId", param: parameters, commandType: CommandType.StoredProcedure).FirstOrDefault()); } catch (Exception ex) { throw ex; } }
public DonXinPhep LayDonXinPhepNhanVienId(LayDonXinPhepNhanVienId model) { return(_quanLyRepository.LayDonXinPhepNhanVienId(model)); }
public DonXinPhep LayDonXinPhepNhanVienId(LayDonXinPhepNhanVienId model) { return(_quanLyService.LayDonXinPhepNhanVienId(model)); }