Ejemplo n.º 1
0
        public async Task <ActionResult <Result> > GetCategories(string id)
        {
            try
            {
                var Result = await _CitizenManager.GetCategories(id);

                return(Result);
            }
            catch (Exception ex)
            {
                _exceptionManager.SaveLog(Request.Path, id, ex, null);
                return(new Result()
                {
                    IsSuccess = false,
                    Errors = new List <string> {
                        Resources.ExceptionMessage
                    }
                });
            }
        }