public IActionResult ClientesAsignarUsuarioWeb(int IDUsuarioWeb, int IDCliente) { ObjectResult result; var ad = new ServicioCorreo(_configuration); try { var res = ad.ClientesAsignarUsuarioWeb(IDUsuarioWeb, IDCliente, null); //var res = new EsquemaViewModel(carr); result = new ObjectResult(res) { StatusCode = (int)HttpStatusCode.OK }; } catch (Exception ex) { result = new ObjectResult(ex) { StatusCode = (int)HttpStatusCode.Conflict }; Request.HttpContext.Response.Headers.Add("dsError", ex.Message); } return(result); }