public void SubmitForm(SupplierInfoEntity entity) { if (string.IsNullOrWhiteSpace(entity.F_Id)) { entity.Create(); repository.Insert(entity); } else { entity.Modify(entity.F_Id); repository.Update(entity); } }
public void SubmitForm(SupplierInfoEntity entity) { if (string.IsNullOrWhiteSpace(entity.F_Id)) { entity.Create(); repository.Insert(entity); } else { entity.Modify(entity.F_Id); repository.Update(entity); } }