Ejemplo n.º 1
0
 public DLModel.HomeContent GetHomeContent(int _OrganizationID)
 {
     if (_homeContentRepository.GetAll(rk => rk.OrganizationID == _OrganizationID).Count() != 0)
     {
         return((DLModel.HomeContent) new DLModel.HomeContent().InjectFrom(_homeContentRepository.GetAll(rk => rk.OrganizationID == _OrganizationID).SingleOrDefault()));
     }
     else
     {
         DLModel.HomeContent homecontent = new DLModel.HomeContent();
         return(homecontent);
     }
 }
Ejemplo n.º 2
0
 public int UpdateHomeContent(DLModel.HomeContent homeContent)
 {
     return(_homeContentRepository.Update((DLModel.HomeContent) new DLModel.HomeContent().InjectFrom(homeContent)));
 }
Ejemplo n.º 3
0
 //HomeContent
 public int AddHomeContent(DLModel.HomeContent homeContent)
 {
     return(_homeContentRepository.Add((DLModel.HomeContent) new DLModel.HomeContent().InjectFrom(homeContent)).HomeContentID);
 }