public OperationResult Update(UpdateSALES_VIEWEDModel model) { var entity = SALES_VIEWEDList.First(t => t.ID == model.ID); entity.ID = model.ID; entity.ProductNo = model.ProductNo; entity.CustomerID = model.CustomerID; entity.ContactID = model.ContactID; entity.CreateDate = model.CreateDate; entity.ModiDate = model.ModiDate; entity.Creator = model.Creator; entity.Modifier = model.Modifier; entity.RowID = model.RowID; SALES_VIEWEDRepository.Update(entity); return(new OperationResult(OperationResultType.Success, "update completed")); }