public int DeleteSkills([FromBody] UserInterest interest)

        {
            FRDBEntities db = new FRDBEntities();

            using (db)
            {
                return(db.DeleteUserInterest(interest.user, interest.id));
            }
        }
        public int DeleteInterset([FromBody] DeleteModels interest)

        {
            FRDBEntities db = new FRDBEntities();
            int          interestId, UserId;

            using (FRDBEntities db1 = new FRDBEntities())
            {
                interestId = db1.GetInterestByName(interest.value).FirstOrDefault <GetInterestByName_Result>().id;
            }
            using (FRDBEntities db2 = new FRDBEntities())
            {
                UserId = db2.GetUserId(interest.email).FirstOrDefault() ?? 0;
            }
            using (db)
            {
                return(db.DeleteUserInterest(UserId, interestId));
            }
        }