Exemplo n.º 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;
     }
 }
Exemplo n.º 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));
     }
 }
Exemplo n.º 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));
     }
 }
Exemplo n.º 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));
     }
 }
Exemplo n.º 5
0
        public IActionResult GetUserCancelEdit(long userCancelId)
        {
            DACancel dACancel = new DACancel();

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

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

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

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