Example #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);
     }
 }
Example #2
0
 public int UpdateHomeContent(DLModel.HomeContent homeContent)
 {
     return(_homeContentRepository.Update((DLModel.HomeContent) new DLModel.HomeContent().InjectFrom(homeContent)));
 }
Example #3
0
 //HomeContent
 public int AddHomeContent(DLModel.HomeContent homeContent)
 {
     return(_homeContentRepository.Add((DLModel.HomeContent) new DLModel.HomeContent().InjectFrom(homeContent)).HomeContentID);
 }