Esempio n. 1
0
 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);
     })));
 }
Esempio n. 2
0
        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);
            })));
        }