Exemplo n.º 1
0
        // GET: Companies/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            CompanyTO company = cmpRepo.getAllCompanybyId(id);

            if (company == null)
            {
                return(HttpNotFound());
            }
            return(View(company));
        }