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));
        }
Exemple #2
0
 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;
     }
 }
Exemple #3
0
 public DonXinPhep LayDonXinPhepNhanVienId(LayDonXinPhepNhanVienId model)
 {
     return(_quanLyRepository.LayDonXinPhepNhanVienId(model));
 }
Exemple #4
0
 public DonXinPhep LayDonXinPhepNhanVienId(LayDonXinPhepNhanVienId model)
 {
     return(_quanLyService.LayDonXinPhepNhanVienId(model));
 }