示例#1
0
        public IHttpActionResult AcadConductStudentCharacterUpdate(AcadConductStudentCharacter acadConductStudentCharacter)
        {
            var isUpdate = academicConductService.AcadConductStudentCharacterUpdate(acadConductStudentCharacter.UniversityId, acadConductStudentCharacter);

            if (isUpdate == true)
            {
                return(Ok());
            }
            return(BadRequest());
        }
        public bool AcadConductStudentCharacterUpdate(int?id, AcadConductStudentCharacter acadConductStudentCharacter)
        {
            try
            {
                var acadConductStudentCharacterObj = JsonConvert.SerializeObject(acadConductStudentCharacter);

                var JsonObj = db.AcadConductStudentCharacterUpdate(id, acadConductStudentCharacterObj);

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