public void SubmitForm(OperationalTaskEntity entity, string keyValue) { if (!string.IsNullOrEmpty(keyValue)) { entity.Modify(keyValue); service.Update(entity); } else { entity.Create(); service.Insert(entity); } }
public void Delete(OperationalTaskEntity entity) { service.Delete(entity); }