public async Task DeleteEducation(int userId, int educationId) { await _dal.PostAsync <Education>(EducationDataContract.DeleteEducation(educationId)); }
public async Task PutEducation(int userId, int educationId, [FromBody] Education education) { await _dal.PostAsync <Education>(EducationDataContract.PutEducation(education, educationId)); }
public IEnumerable <Education> GetEducations(int userId) { return(_dal.GetList(EducationDataContract.GetEducations())); }
public async Task CreateEducation([FromBody] Education education) { await _dal.PostAsync <Education>(EducationDataContract.PostEducation(education)); }
public Education GetEducation(int userId, int educationId) { return(_dal.Get(EducationDataContract.GetEducation(educationId))); }