Exemple #1
0
        public async Task <IHttpActionResult> EliminaFoto(Personas obj)
        {
            try
            {
                log.Info(new MDCSet(this.ControllerContext.RouteData));
                var persona = await _repository.EliminaFoto(obj);

                return(Ok(persona));
            }
            catch (Exception e)
            {
                log.Error(new MDCSet(this.ControllerContext.RouteData), e);

                return(InternalServerError(e));
            }
        }