Skip to content

Commit

Permalink
Connection string +quelques réglages
Browse files Browse the repository at this point in the history
  • Loading branch information
xxdomxx committed Nov 21, 2014
1 parent 669df6f commit e10490a
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 23 deletions.
8 changes: 6 additions & 2 deletions PhotoFun/Models/PhotoFunBD.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ namespace PhotoFun.Models
{
public class PhotoFunBD
{
private const string cs = "Data Source=Dominic_Pc\\SQLEXPRESS ;Initial Catalog=tempdb;Integrated Security=True";
private const string cs = "Data Source=EQUIPE-01\\SQLEXPRESS ;Initial Catalog=tempdb;Integrated Security=True";

public bool InsererUtil(RegisterModel rm)
{
using (var conn = new SqlConnection(cs))
Expand Down Expand Up @@ -78,6 +79,7 @@ public bool ExtraireUtil(string IDUtil, out List<string> NomUtil)
return resultat;
}
}

public bool MettreAJourLeCommentaireDeLaPhoto(string commentaire, string photo)
{
using (var conn = new SqlConnection(cs))
Expand Down Expand Up @@ -431,6 +433,7 @@ public bool InsererDonneesProfil(ProfilModel pm)
return resultat;
}
}

public bool EnleveTousLesLiaisonsAvecLesUtils(string nomPhoto)
{
using(var conn=new SqlConnection(cs))
Expand Down Expand Up @@ -535,6 +538,7 @@ public bool VerifAbonnement(string pm, string UtilConnecter)
return resultat;
}
}

public bool VerifLiaisonPhotoUtil(string nomUtil, string nomPhoto)
{
using (var conn = new SqlConnection(cs))
Expand Down Expand Up @@ -569,7 +573,6 @@ public bool VerifLiaisonPhotoUtil(string nomUtil, string nomPhoto)
}
}


public bool SupprimerRelAbonnement(string UtilAbonner, string UtilConnecter)
{
using (var conn = new SqlConnection(cs))
Expand All @@ -591,6 +594,7 @@ public bool SupprimerRelAbonnement(string UtilAbonner, string UtilConnecter)
return resultat;
}
}

public bool AjoutRelationUtilPhoto(string nomUtil, string nomPhoto)
{
using (var conn = new SqlConnection(cs))
Expand Down
38 changes: 18 additions & 20 deletions PhotoFun/Views/Account/ProfilUtil.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,22 @@
<div class="page-header">
<h1>@NomProfil.IdUtilRechercher</h1>
</div>
@{
if(NomProfil.IdUtilRechercher != "Utilisateur Inexistant")
{
@Html.Label(NomProfil.NbAbonnement.ToString())
if(NomProfil.IdUtilRechercher != User.Identity.Name && User.Identity.IsAuthenticated)
{
if (NomProfil.Abonner)
{
@Html.ActionLink("Ne plus suivre","Suivre",new{ nom=NomProfil.IdUtilRechercher, abonne=NomProfil.Abonner}, null)
}
else
{
@Html.ActionLink("Suivre", "Suivre", "Account", new { nom = NomProfil.IdUtilRechercher, abonne=NomProfil.Abonner }, null)
}
}
<br />
@Html.ActionLink("Photos", "PhotoUtil", "Account", new { nom = NomProfil.IdUtilRechercher },null)
}
@{
if(NomProfil.IdUtilRechercher != "Utilisateur Inexistant")
{
@Html.Label(NomProfil.NbAbonnement.ToString())
if(NomProfil.IdUtilRechercher != User.Identity.Name && User.Identity.IsAuthenticated)
{
if (NomProfil.Abonner)
{
@Html.ActionLink("Ne plus suivre","Suivre",new{ nom=NomProfil.IdUtilRechercher, abonne=NomProfil.Abonner}, null)
}
else
{
@Html.ActionLink("Suivre", "Suivre", "Account", new { nom = NomProfil.IdUtilRechercher, abonne=NomProfil.Abonner }, null)
}
}
<br />
@Html.ActionLink("Photos", "PhotoUtil", "Account", new { nom = NomProfil.IdUtilRechercher },null)
}


}
1 change: 0 additions & 1 deletion PhotoFun/Views/Home/RetourneLaVueSelonCategorie.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
@Html.Hidden("Image", Photo)
<span hidden class="nomUtil" item="@nomUtil"></span>
<span hidden class="commentaire" item="@commentaire"></span>

}
else
{
Expand Down
Binary file not shown.
Binary file modified PhotoFun/obj/Debug/PhotoFun.dll
Binary file not shown.
Binary file modified PhotoFun/obj/Debug/PhotoFun.pdb
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit e10490a

Please sign in to comment.