/// <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); }
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); }
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; }
public CartController(IBasketService basketSvc, IScholarshipService catalogSvc, IIdentityParser <ApplicationUser> appUserParser) { _basketSvc = basketSvc; _catalogSvc = catalogSvc; _appUserParser = appUserParser; }
public ScholarshipController(IScholarshipService scholarshipSvc) =>
public BasketController(IScholarshipService scholarshipService, IBasketService basketService) { _scholarship = scholarshipService; _basket = basketService; }
public ScholarshipController(IScholarshipService service) { _service = service; }