public async Task <IResultModel> Add(MediaTypeAddModel model) { var entity = _mapper.Map <MediaTypeEntity>(model); var result = await _repository.InsertAsync(entity); return(ResultModel.Result(result)); }
public async Task <IResultModel> Add(MediaTypeAddModel model) { var entity = _mapper.Map <MediaTypeEntity>(model); var result = await _repository.InsertAsync(entity); return(ResultModel.Result(result)); }