Skip to content

Commit bbe505a

Browse files
committed
new split for tags
1 parent 183fed3 commit bbe505a

14 files changed

+4
-4
lines changed

EPAM.MyBlog.DAL.DB/DAL.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ public bool DeleteUser(string name)
134134
#region Posts
135135
public bool AddPost(Entities.PostText post, string login)
136136
{
137-
string[] split = post.Tags.Split(new Char[] { ' ', ','});
137+
string[] split = post.Tags.Split(' ');
138138
for (int i = 0; i < split.Length; i++)
139139
{
140140
using (SqlConnection con = new SqlConnection(ConnectionString))
@@ -268,7 +268,7 @@ public bool EditPostById(Entities.PostText post)
268268
con2.Close();
269269
}
270270

271-
string[] split = post.Tags.Split(new Char[] { ' ', ',' });
271+
string[] split = post.Tags.Split(' ');
272272
for (int i = 0; i < split.Length; i++)
273273
{
274274
using (SqlConnection con2 = new SqlConnection(ConnectionString))
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

EPAM.MyBlog.UI.Web/Views/Post/Posts.cshtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@
2121

2222
<p>
2323
</p>
24-
@Html.Action("AddComment", "Comment", new { Post_Id = Model.Id });
25-
@Html.ActionLink("К списку", "Index", "Post");
24+
@Html.Action("AddComment", "Comment", new { Post_Id = Model.Id })
25+
@Html.ActionLink("К списку", "Index", "Post")
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.

EPAM.MyBlog.v11.suo

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)