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

                response.Items = RecruiterService.GetReminderByUserId();

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