Classe responsável por representar o histórico de atividades
Inheritance: BaseEntity
        public ActionResult Create(Historic historic)
        {
            if (historic.Title == null)
                return View(historic);

            int id = _HistoricService.CreateHistoric(historic);

            return RedirectToAction("Index", new { id = id });
        }
        public ActionResult Edit(Historic historic)
        {
            if (historic.Title == null)
            {
                HistoricFilter historicFilter = new HistoricFilter()
                {
                    Id = historic.Id
                };

                Historic hstrc = _HistoricService.GetHistoric(historicFilter);

                return View(hstrc);
            }

            _HistoricService.EditHistoric(historic);

            return RedirectToAction("Index", new { id = historic.Id });
        }
 public void EditHistoric(Historic historic)
 {
     using (IDataProvider provider = base.CreateDataProvider())
     using (IHistoricRepository repository = provider.CreateHistoricRepository())
         repository.Update(historic);
 }
 public int CreateHistoric(Historic historic)
 {
     using (IDataProvider provider = base.CreateDataProvider())
     using (IHistoricRepository repository = provider.CreateHistoricRepository())
         return repository.Create(historic);
 }
 public void EditHistoric(Historic historic)
 {
     using (IBusinessProvider provider = base.CreateBusinessProvider())
     using (IHistoricBusinessProvider prov = provider.CreateHistoricBusinessProvider())
         prov.EditHistoric(historic);
 }
 public int CreateHistoric(Historic historic)
 {
     using (IBusinessProvider provider = base.CreateBusinessProvider())
     using (IHistoricBusinessProvider prov = provider.CreateHistoricBusinessProvider())
         return prov.CreateHistoric(historic);
 }