public bool Post(FollowModel followModel) { FollowDTO followdto = new FollowDTO(); followdto.UserID = Guid.Parse(followModel.UserID); followdto.UserToFollowID = Guid.Parse(followModel.UserToFollowID); bool result = UserBusinessContext.Follow(followdto); return(result); }
public bool Post(FollowModel followModel) { //fetch user to follow's userid from url and fetch loggedin user id from session // string ass = HttpContext.Current.Session["UserID"].ToString(); FollowDTO followdto = new FollowDTO(); followdto.UserID = Guid.Parse(followModel.UserID); followdto.UserToFollowID = Guid.Parse(followModel.UserToFollowID); bool result = UserBusinessContext.Follow(followdto); return(result); }