// PUT api/AdmissionInfo/5
        public IHttpActionResult PutAdmissionInfo(int id, AdmissionInfo admissioninfo)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            if (id != admissioninfo.AdmId)
            {
                return(BadRequest());
            }

            db.Entry(admissioninfo).State             = EntityState.Modified;
            db.Entry(admissioninfo.StudentInfo).State = EntityState.Modified;
            try
            {
                db.SaveChanges();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!AdmissionInfoExists(id))
                {
                    return(NotFound());
                }
                else
                {
                    throw;
                }
            }

            return(StatusCode(HttpStatusCode.NoContent));
        }
        // PUT api/FeeDeposited/5
        public IHttpActionResult PutFeeDeposit(int id, FeeDeposit feedeposit)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            if (id != feedeposit.FeeDepositId)
            {
                return(BadRequest());
            }

            db.Entry(feedeposit).State = EntityState.Modified;

            try
            {
                db.SaveChanges();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!FeeDepositExists(id))
                {
                    return(NotFound());
                }
                else
                {
                    throw;
                }
            }

            return(StatusCode(HttpStatusCode.NoContent));
        }
        // PUT api/EmployeeAttendance/5
        public IHttpActionResult PutEmpAttendanceRegister(int id, EmpAttendanceRegister empattendanceregister)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            if (id != empattendanceregister.AttandanceId)
            {
                return(BadRequest());
            }

            db.Entry(empattendanceregister).State = EntityState.Modified;

            try
            {
                db.SaveChanges();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!EmpAttendanceRegisterExists(id))
                {
                    return(NotFound());
                }
                else
                {
                    throw;
                }
            }

            return(StatusCode(HttpStatusCode.NoContent));
        }