public void SubmitForm(RequestLogEntity accessLogEntity, string keyValue) { if (!string.IsNullOrEmpty(keyValue)) { accessLogEntity.Modify(keyValue); service.Update(accessLogEntity); } else { accessLogEntity.Create(); service.Insert(accessLogEntity); } }
public int Update(RequestLog requestLog) { _requestLogRepository.Update(requestLog); return(_requestLogRepository.SaveChanges()); }