Example #1
0
        public async Task <IActionResult> DeleteFriend(string friendUsername)
        {
            var ret = await service.DeleteFriend(User.Identity.Name, friendUsername);

            if (ret.Success)
            {
                return(Ok(mapper.Map <UserResource>(ret.Resource)));
            }
            else
            {
                return(BadRequest(new { Message = ret.Message }));
            }
        }