Beispiel #1
0
                                                   [HttpPost][Authorize] public async Task <IHttpActionResult> CreateFuncionesRol(Roles obj)
                                                   {
                                                       try { log.Info(new MDCSet(this.ControllerContext.RouteData));
                                                             await _repository.CreateFuncionesRol(obj);

                                                             return(Ok("Rol de usuario creado correctamente!")); }
                                                       catch (Exception e) { log.Error(new MDCSet(this.ControllerContext.RouteData), e);
                                                                             return(InternalServerError(e)); }
                                                   }