public bool RemoteProcessingUpdate(RemoteProcessingUpdate command) { if (command.Period == default) { throw new Exception("Missing parameter: Period"); } if (command.Period.Day != 1) { throw new Exception("Period must be the first day of the month."); } var bt = Session.GetBillingType(command.ClientID, command.AccountID, command.Period); if (bt != null) { Session.UpdateToolBillingType(command.ClientID, command.AccountID, bt.BillingTypeID, command.Period); Session.UpdateRoomBillingType(command.ClientID, command.AccountID, bt.BillingTypeID, command.Period); return(true); } else { return(false); } }
public bool RemoteProcessingUpdate([FromBody] RemoteProcessingUpdate model) { using (DA.StartUnitOfWork()) return(Provider.Billing.Process.RemoteProcessingUpdate(model)); }
public bool RemoteProcessingUpdate(RemoteProcessingUpdate command) { return(Post <bool>("webapi/billing/process/remote-processing-update", command)); }