Exemplo n.º 1
0
 public QUAN_HUYEN_ApprResult QUAN_HUYEN_Appr(QUAN_HUYEN_SearchResult data)
 {
     try
     {
         using (var dataContext = new OOAD_EDUManagementDataContext())
         {
             QUAN_HUYEN_ApprResult result = dataContext.QUAN_HUYEN_Appr(
                 data.maQuan_Huyen,
                 data.maTrangThaiDuyet,
                 data.maNguoiDuyet,
                 data.thoiGianDuyet == null ? "" : data.thoiGianDuyet.Value.ToString(Constants.FormatDate)).FirstOrDefault();
             return result;
         }
     }
     catch (Exception e)
     {
         return new QUAN_HUYEN_ApprResult() { RESULT = "-1", ERRORDESC = e.Message };
     }
 }