public async Task <IHttpActionResult> ChangeStatus(RentoRequest <int> request) { Logger.Debug("Car - ChangeStatus", request); return(Ok(await TryCatchResponseBase(request, ValidateType.Active, async(RentoResponse response) => { await CarManager.ChangeStatus(UserSession.Id, request.Data); }))); }
public IHttpActionResult ChangeStatus(RentoRequest <int> request) { Logger.Debug("Car - ChangeStatus", request); var response = new RentoResponse(request); return(Ok(TryCatch(request, response, ValidateType.Active, async() => { await CarManager.ChangeStatus(UserSession.Id, request.Data); }))); }