public async Task <IHttpActionResult> Update(params MatPalletInfoInputDto[] dto) { //修改人员、时间 dto?.ToList().ForEach((a) => { a.LastUpdatedTime = DateTime.Now; a.LastUpdatorUserId = User.Identity.Name; }); // var result = await MatPalletInfoContract.UpdateMatPallets(dto); return(Json(result)); }
public async Task <IHttpActionResult> Add(params MatPalletInfoInputDto[] inputDtos) { //创建和修改的人员、时间 inputDtos?.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 MatPalletInfoContract.Add(inputDtos); return(Json(result)); }
public async Task <IHttpActionResult> Remove(params Guid[] ids) { var result = await MatPalletInfoContract.DeleteMatPallets(ids); return(Json(result)); }