Ejemplo n.º 1
0
        public HttpResponseMessage GetReminder()
        {
            try
            {
                ItemsResponse <Reminder> response = new ItemsResponse <Reminder>();

                response.Items = RecruiterService.GetReminder();

                return(Request.CreateResponse(response));
            }
            catch (Exception ex)
            {
                ErrorLogService    svc   = new ErrorLogService();
                ErrorLogAddRequest error = new ErrorLogAddRequest();
                error.ErrorFunction = "Aic.Web.Controllers.Api.GetReminder";
                error.ErrorMessage  = ex.Message;
                error.UserId        = UserService.UserSelect().PersonId;
                svc.ErrorLogInsert(error);
                return(Request.CreateErrorResponse(HttpStatusCode.InternalServerError, ex.Message));
            }
        }