Exemplo n.º 1
0
        public async Task <IHttpActionResult> Update(params BusinessNodeInputDto[] inputDto)
        {
            string name = User.Identity.Name;

            //修改人员、时间
            inputDto?.ToList().ForEach((a) =>
            {
                a.LastUpdatedTime   = DateTime.Now;
                a.LastUpdatorUserId = User.Identity.Name;
            });
            var result = await BusinessNodeContract.Update(inputDto);

            return(Json(result));
        }
Exemplo n.º 2
0
        public async Task <IHttpActionResult> Add(params BusinessNodeInputDto[] inpuDto)
        {
            //创建和修改的人员、时间
            inpuDto?.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 BusinessNodeContract.Add(inpuDto);

            return(Json(result));
        }
Exemplo n.º 3
0
        public async Task <IHttpActionResult> Remove(params Guid[] ids)
        {
            var result = await BusinessNodeContract.DeleteBusinessNodes(ids);

            return(Json(result));
        }