public NeededSkillService Service() { var userId = User.Identity.GetUserId(); var neededSkillService = new NeededSkillService(); return(neededSkillService); }
public IHttpActionResult Get() { NeededSkillService neededSkillService = Service(); var neededSkills = neededSkillService.GetNeededSkill(); string newLog = "All Skills Recieved"; var logService = CreateLogService(); logService.LogCreate(newLog); return(Ok(neededSkills)); }
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)); }