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