public async Task <ActionResult <Response> > UpdMarca([FromBody] Marca marca) { Response response = new Response(); object rpta = new object(); try { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } marca = (Marca)BusinessLogic.Utilities.AuxiliarMethods.ValidateParameters(marca, marca.GetType()); rpta = await _marcalogic.UpdMarca(marca); if (rpta == null) { return(NotFound()); } } catch (Exception e) { response.Status = Constant.Error500; response.Message = e.Message; return(Ok(response)); } return(Ok(rpta)); }