Esempio n. 1
0
        public HttpResponseMessage ResendTaskEmail([FromBody] ResendTaskEmail resendTaskEmail)
        {
            try
            {
                Task.Factory.StartNew(() => TaskServices.ResendTaskEmail(resendTaskEmail.TaskIDs, resendTaskEmail.SiteID, resendTaskEmail.ProgramID, resendTaskEmail.UserID));

                return(Request.CreateResponse(HttpStatusCode.OK));
            }
            catch (Exception ex)
            {
                ex.Data.Add("HTTPReferrer", "JCRAPI/TaskInfo/ResendTaskEmail");
                WebExceptionHelper.LogException(ex, null);
                return(Request.CreateResponse(HttpStatusCode.OK, string.Empty));
            }
        }