public ActionResult Delete(int id) { var service = new RepService(); var model = service.GetRepByID(id); return(View(model)); }
public ActionResult Edit(int id) { var service = new RepService(); var detail = service.GetRepByID(id); var model = new RepDetail { ID = detail.ID, Name = detail.Name, Email = detail.Email, }; return(View(model)); }
public IHttpActionResult Get(int id) { var rep = repService.GetRepByID(id); return(Ok(rep)); }