public int AddSocialNetwork(SocialNetworksStudent socialNetworksStudent) { int resultToReturn; using (var context = new MVC_IF4101MVCLPACEntities()) { resultToReturn = context.InsertUpdateSocialNetworkStudent(socialNetworksStudent.Id, socialNetworksStudent.StudentId, socialNetworksStudent.Url, socialNetworksStudent.SocialNetworksNameId, "Insert"); } return(resultToReturn); }