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