예제 #1
0
 public object AddFans(Fans fans)
 {
     if (fans == null || string.IsNullOrEmpty(fans.userid1) ||
         string.IsNullOrEmpty(fans.userid2))
     {
         return(new ReturnResult <Fans>(-4, "传入参数错误!"));
     }
     else if (fans.userid1 == fans.userid2)
     {
         return(new ReturnResult <Fans>(-4, "无需关注自己!"));
     }
     return(_UsersService.AddFans(fans));
 }