예제 #1
0
 public static void BusinessCancel(double Booking_ID, out int Status, out int Refund_Amount, int CusID)
 {
     try
     {
         DACancel.DataCancel(Booking_ID, out Status, out Refund_Amount, CusID);
     }
     catch (Exception Excptn_BusinessCancel)
     {
         throw Excptn_BusinessCancel;
     }
 }
예제 #2
0
 public IActionResult StatusUser(long usercancelid, bool status)
 {
     try
     {
         DACancel dACancel = new DACancel();
         return(this.OKResponse(dACancel.StatusUser(_context, usercancelid, status, User.ToAppUser()) == true ? (status == true ? "Active Successfully" : "InActive Successfully") : "Failed to Update"));
     }
     catch (DataValidationException ex)
     {
         return(this.KnowOperationError(ex.Message));
     }
 }
예제 #3
0
 public IActionResult DeleteUser(long usercancelid)
 {
     try
     {
         DACancel dACancel = new DACancel();
         return(this.OKResponse(dACancel.DeleteUser(_context, usercancelid, User.ToAppUser()) == true ? "Deleted Successfully" : "Deletion Failed"));
     }
     catch (DataValidationException ex)
     {
         return(this.KnowOperationError(ex.Message));
     }
 }
예제 #4
0
 public IActionResult EditUser(CancelUserInfo cancelUserInfo)
 {
     try
     {
         Validator.validataeCancelUser(cancelUserInfo);
         DACancel dACancel = new DACancel();
         return(this.OKResponse(dACancel.EditUser(_context, cancelUserInfo, User.ToAppUser()) == true ? "Updated Successfully" : "Updation Failed"));
     }
     catch (DataValidationException ex)
     {
         return(this.KnowOperationError(ex.Message));
     }
 }
예제 #5
0
        public IActionResult GetUserCancelEdit(long userCancelId)
        {
            DACancel dACancel = new DACancel();

            return(this.OK <CancelUserInfo>(dACancel.GetbyUserCancelId(userCancelId, _context)));
        }
예제 #6
0
        public IActionResult ManageUser()
        {
            DACancel dACancel = new DACancel();

            return(this.OK <List <CancelUser> >(dACancel.UserList(_context)));
        }
예제 #7
0
        public IActionResult GetDriverCancelEdit(long driverCancelId)
        {
            DACancel dACancel = new DACancel();

            return(this.OK <CancelDriverInfo>(dACancel.GetbyDriverCancelId(driverCancelId, _context)));
        }
예제 #8
0
        public IActionResult ManageDrivers()
        {
            DACancel dACancel = new DACancel();

            return(this.OK <List <CancelDriver> >(dACancel.DriverList(_context)));
        }