public void PostShareholderType([FromBody] ShareholderTypeDto shareholderTypeDto)
        {
            ShareholderType com = new ShareholderType();

            com.Id   = shareholderTypeDto.Id;
            com.Type = shareholderTypeDto.Type;
            stocky.ShareholderType.Add(com);
            stocky.SaveChanges();
        }
        public void PutShareholderType(String id, [FromBody] ShareholderTypeDto shareholderTypeDto)
        {
            //  stocky.Company.Update(id, com);
            ShareholderType com = stocky.ShareholderType.Where(e => e.Id == shareholderTypeDto.Id).Single <ShareholderType>();

            com.Id   = shareholderTypeDto.Id;
            com.Type = shareholderTypeDto.Type;
            stocky.Entry(com).State = Microsoft.EntityFrameworkCore.EntityState.Modified;
            stocky.SaveChanges();
        }
        public dynamic GetShareholderType(String id)
        {
            ShareholderType com = stocky.ShareholderType.Where(e => e.Id == id).FirstOrDefault();

            return(new ShareholderTypeDto(com.Id, com.Type));
        }