Example #1
0
        public BaseResponse <AssignTask> SaveAssignTask2(AssignTask2 request)
        {
            AssignTask ass = new AssignTask {
                OrgId       = SecurityHelper.CurrentPrincipal.OrgId,
                PerformDate = request.NEXTEVALDATE,
                Assignee    = request.NEXTEVALUATEBY == null ? SecurityHelper.CurrentPrincipal.EmpNo : request.NEXTEVALUATEBY,
                FeeNo       = request.FEENO,
                Content     = AutoTaskTmp.AutoTask[request.KEY].Content,
                RecStatus   = false,
                NewrecFlag  = true,
                AutoFlag    = true,
                AssignDate  = DateTime.Now
            };

            return(base.Save <LTC_ASSIGNTASK, AssignTask>(ass, (q) => (false)));
        }
        public IHttpActionResult Post(AssignTask2 baseRequest)
        {
            var response = AssignTaskService.SaveAssignTask2(baseRequest);

            return(Ok(response));
        }