예제 #1
0
        public async Task <IHttpActionResult> Update(params EquEquipmentInfoInputDto[] dto)
        {
            dto?.ToList().ForEach((a) =>
            {
                a.LastUpdatedTime   = DateTime.Now;
                a.LastUpdatorUserId = User.Identity.Name;
            });
            var result = await EquipmentInfoContract.Update(dto);

            return(Json(result));
        }
예제 #2
0
        public async Task <IHttpActionResult> Add(params EquEquipmentInfoInputDto[] inputDtos)
        {
            inputDtos?.ToList().ForEach((a) =>
            {
                a.CreatorUserId     = User.Identity.Name;
                a.CreatedTime       = DateTime.Now;
                a.LastUpdatedTime   = a.CreatedTime;
                a.LastUpdatorUserId = a.CreatorUserId;
            });
            var result = await EquipmentInfoContract.Add(inputDtos);

            return(Json(result));
        }
예제 #3
0
        public async Task <IHttpActionResult> Remove(params Guid[] ids)
        {
            var result = await EquipmentInfoContract.Delete(ids);

            return(Json(result));
        }