Beispiel #1
0
        public void TestAddOrUpdateProfileEducation_ItShouldSetAddProfileEducation_Success()
        {
            var model = new ProfileEducationView()
            {
                ProfileId          = 15996,
                OrganizationName   = "New Test Org",
                IsStudied          = true,
                CountryId          = 10,
                DegreeLookupItemId = 56001,
                OrganizationId     = 10,
                Year = "2019",
                FieldOfStudyString = "Field of study 1"
            };

            var data = _assessmentService.AddOrUpdateProfileEducationAsync(model).Result;

            Assert.IsNotNull(data);
        }
Beispiel #2
0
        public async Task <IActionResult> AddOrUpdateProfileEducationAsync([FromBody] ProfileEducationView model)
        {
            var result = await _service.AddOrUpdateProfileEducationAsync(model);

            return(Ok(result));
        }