public async Task <IResultModel> Add(ModuleAddModel model) { var entity = _mapper.Map <ModuleEntity>(model); var result = await _repository.AddAsync(entity); return(ResultModel.Result(result)); }
public Task <IResultModel> Add(ModuleAddModel model) { return(_service.Add(model)); }