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)); }
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)); }
public async Task <IHttpActionResult> Remove(params Guid[] ids) { var result = await EquipmentInfoContract.Delete(ids); return(Json(result)); }