Пример #1
0
        public NeededSkillService Service()
        {
            var userId             = User.Identity.GetUserId();
            var neededSkillService = new NeededSkillService();

            return(neededSkillService);
        }
Пример #2
0
        public IHttpActionResult Get()
        {
            NeededSkillService neededSkillService = Service();
            var    neededSkills = neededSkillService.GetNeededSkill();
            string newLog       = "All Skills Recieved";
            var    logService   = CreateLogService();

            logService.LogCreate(newLog);

            return(Ok(neededSkills));
        }
Пример #3
0
        public IHttpActionResult Get(int id)
        {
            NeededSkillService neededSkillService = Service();
            var neededSkills = neededSkillService.GetNeededSkillById(id);

            string newLog     = "Skill Recieved By Id";
            var    logService = CreateLogService();

            logService.LogCreate(newLog);

            return(Ok(neededSkills));
        }