/// <summary> /// Registrar log de atividade do usuário /// </summary> /// <param name="type"></param> /// <returns></returns> public async Task RegisterLogAsync(ActionLogType type) { var log = new ActionLog(type.Id); _actionLogRepository.Add(log); await _actionLogRepository.UnitOfWork.SaveChangesAsync(); }
public bool CreateActionLog(ActionLog actionLog) { bool isSuccess = true; try { actionLogRepository.Add(actionLog); this.SaveRecord(); } catch { isSuccess = false; } return(isSuccess); }
public ActionLog Add(ActionLog _model) { return(_Repository.Add(_model)); }