Beispiel #1
0
        public async Task <IHttpActionResult> Add(params Agv.Dtos.TaskInfoInputDto[] dto)
        {
            //创建和修改的人员、时间
            dto?.ToList().ForEach((a) =>
            {
                a.Id                = CombHelper.NewComb();
                a.CreatorUserId     = User.Identity.Name;
                a.CreatedTime       = DateTime.Now;
                a.LastUpdatedTime   = a.CreatedTime;
                a.LastUpdatorUserId = a.CreatorUserId;
            });
            var result = await TaskInfoContract.Add(dto);

            return(Json(result));
        }
Beispiel #2
0
        public async Task <IHttpActionResult> Remove(params Guid[] ids)
        {
            var result = await TaskInfoContract.Delete(ids);

            return(Json(result));
        }
Beispiel #3
0
        public async Task <IHttpActionResult> Update(params Agv.Dtos.TaskInfoInputDto[] dto)
        {
            var result = await TaskInfoContract.Update(dto);

            return(Json(result));
        }