コード例 #1
0
        public IHttpActionResult AcadExamResultPhEduUpdate(AcadExamResultPhEdu aAcadExamResultPhEduupdate)
        {
            var isUpdate = acadExamResultPhEduService.AcadExamResultPhEduUpdate(aAcadExamResultPhEduupdate.UniversityId, aAcadExamResultPhEduupdate);

            if (isUpdate == true)
            {
                return(Ok());
            }
            return(BadRequest());
        }
コード例 #2
0
        public bool AcadExamResultPhEduUpdate(int?id, AcadExamResultPhEdu acadExamResultPhEdu)
        {
            try
            {
                var acadExamResultPhEduObj = JsonConvert.SerializeObject(acadExamResultPhEdu);

                var JsonObj = db.AcadExamResultPhEduUpdate(id, acadExamResultPhEduObj);

                return(true);
            }
            catch (Exception ex)
            {
                Console.WriteLine("NotImplementedException", ex);
                return(false);
            }
        }