Esempio n. 1
0
 public Service(Int64 id, string title, decimal price, int period, int periodsPaid,
                decimal effectiveness, Int64 asset_id, Int64 company_id, MySqlConnection _connection)
 {
     Id            = id;
     Title         = title;
     Price         = price;
     Period        = period;
     PeriodsPaid   = periodsPaid;
     Asset_id      = asset_id;
     Company       = CompanyDAO.GetCompanyById((int)company_id, _connection);
     Effectiveness = effectiveness;
 }
Esempio n. 2
0
        public ActionResult <IEnumerable <string> > GetAllCompanyById(int id)
        {
            CompanyDTO com = CompanyDAO.GetCompanyById(id);

            return(new JsonResult(rm.Success(com)));
        }