public IHttpActionResult GetFollowerList(Guid userId) { using (var bal = new UserFollowerBAL()) { var followerList = bal.GetFollowUserList(userId); return(Ok(followerList)); } }
public IHttpActionResult Follow(Guid userId, Guid followerUserId) { using (var bal = new UserFollowerBAL()) { bal.Follow(userId, followerUserId); return(Ok("Data Successful Saved")); } }
public IHttpActionResult GetFollowerList(Guid userId) { return(Run(() => { using (var bal = new UserFollowerBAL()) { return bal.GetFollowUserList(userId); } })); }
public IHttpActionResult Follow(Guid userId) { return(Run(() => { using (var bal = new UserFollowerBAL()) { bal.Follow(UserId, userId); return "Data Successful Saved"; } })); }