public HeadOfficeController(ApplicationDbContext context, IHeadOffice headOffice)
 {
     _context           = context;
     _headOfficeService = headOffice;
 }
示例#2
0
        public IBusinessDocument Setup(string name, string tradingName, string webAddress, IHeadOffice headOffice, IHeadContact headContact, int code)
        {
            Validate(name, tradingName, webAddress, code);

            Id          = new Guid();
            Name        = name;
            TradingName = tradingName;
            Office      = headOffice as HeadOffice;
            Contact     = headContact as HeadContact;
            Code        = code;

            return(this);
        }