public SizeDto DeleteSize(int id) { var existed = this.SizeExists(id); if (!existed) { return(null); } var size = _repo.GetById(id); int res = _repo.Delete(size); if (res <= 0) { return(null); } return(_mapper.Map <SizeDto>(size)); }
public void DeleteSize(int id) { var model = _sizeRepository.GetSingleById(id); _sizeRepository.Delete(model); }
public async Task <bool> DeleteSize(int id) { return(await _repository.Delete(id)); }
public async Task <DeleteSizeRes> Delete(int SizeId) { return(await sizeRepository.Delete(SizeId)); }
public Size Delete(int id) { return(sizeRepository.Delete(id)); }
public void Delete(int id) { _sizeRepository.Delete(id); }