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; } }
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)); } }
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)); } }
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)); } }
public IActionResult GetUserCancelEdit(long userCancelId) { DACancel dACancel = new DACancel(); return(this.OK <CancelUserInfo>(dACancel.GetbyUserCancelId(userCancelId, _context))); }
public IActionResult ManageUser() { DACancel dACancel = new DACancel(); return(this.OK <List <CancelUser> >(dACancel.UserList(_context))); }
public IActionResult GetDriverCancelEdit(long driverCancelId) { DACancel dACancel = new DACancel(); return(this.OK <CancelDriverInfo>(dACancel.GetbyDriverCancelId(driverCancelId, _context))); }
public IActionResult ManageDrivers() { DACancel dACancel = new DACancel(); return(this.OK <List <CancelDriver> >(dACancel.DriverList(_context))); }