public ShareDto GetShareById(int id) { var share = _shareRepository.FindById(id); if (share == null) { throw new Exception("Share was not found"); } return(Mapper.Map <Share, ShareDto>(share)); }
public ShareDto GetShareById(int id) { var share = _shareRepository.FindById(id); if (share == null) { throw new Exception("Share was not found"); } return(Mapper.Map <Share, ShareDto>(share)); }