コード例 #1
0
        /// <summary>
        /// To delete Scholarship details
        /// </summary>
        /// <param name="id">ScholarshipId</param>
        public void Delete(string id)
        {
            IScholarshipService <Scholarship> jobSeekerService = ServiceFactory.GetJobSeekerScholarship();
            var jobSeeker = jobSeekerService.GetById(id);

            jobSeekerService.Delete(jobSeeker);
        }
コード例 #2
0
        public static IScholarshipService <Scholarship> GetJobSeekerScholarship()
        {
            IScholarshipService <SkillSmart.Dto.Scholarship> serviceObj = null;

            switch (sectionHandler.ConnectionStringName)
            {
            case DataBaseType.SKILLSMART_MONGO_DB: serviceObj = new ScholarshipService(DatabaseFactory.CreateMongoDatabase());
                break;

            default: serviceObj = new ScholarshipService(DatabaseFactory.CreateMongoDatabase());
                break;
            }
            return(serviceObj);
        }
コード例 #3
0
 public ScholarshipController(IStudentService strepo, ICodeTypeService ctrepo, IAddressService adrepo,
                              IFeeScheduleService ifrepo, IFeeScheduleDtlService ifsdrepo, IScholarshipService ischrepo, IScholarshipdtlService ischdrepo) : base(strepo, ctrepo, adrepo, ifrepo)
 {
     _ischrepo  = ischrepo;
     _ischdrepo = ischdrepo;
 }
コード例 #4
0
 public CartController(IBasketService basketSvc, IScholarshipService catalogSvc, IIdentityParser <ApplicationUser> appUserParser)
 {
     _basketSvc     = basketSvc;
     _catalogSvc    = catalogSvc;
     _appUserParser = appUserParser;
 }
コード例 #5
0
 public ScholarshipController(IScholarshipService scholarshipSvc) =>
コード例 #6
0
 public BasketController(IScholarshipService scholarshipService, IBasketService basketService)
 {
     _scholarship = scholarshipService;
     _basket      = basketService;
 }
コード例 #7
0
 public ScholarshipController(IScholarshipService service)
 {
     _service = service;
 }