Skip to content

Commit

Permalink
Merge pull request #183 from raffacabofrio/master
Browse files Browse the repository at this point in the history
Bugfix para o problema de token em DEV.
  • Loading branch information
wantero authored Dec 26, 2018
2 parents 28950eb + d0db619 commit cfb6b4c
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ShareBook/ShareBook.Api/Controllers/AccountController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public object Profile()
public IActionResult ListFacilitators()
{
var facilitators = _userService.GetFacilitators();
var facilitatorsClean = Mapper.Map<List<UserVM>>(facilitators);
var facilitatorsClean = Mapper.Map<List<UserFacilitatorVM>>(facilitators);
return Ok(facilitatorsClean);
}
#endregion
Expand Down
2 changes: 1 addition & 1 deletion ShareBook/ShareBook.Api/ViewModels/BaseViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace ShareBook.Api.ViewModels
{
public abstract class BaseViewModel : IIdProperty
{
//[JsonIgnore]
[JsonIgnore]
public Guid Id { get; set; }
}
}
17 changes: 17 additions & 0 deletions ShareBook/ShareBook.Api/ViewModels/UserVM.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using ShareBook.Domain;
using System;

namespace ShareBook.Api.ViewModels
{
Expand All @@ -15,4 +16,20 @@ public class UserVM : BaseViewModel

public Address Address { get; set; }
}

public class UserFacilitatorVM
{

public Guid Id { get; set; }

public string Name { get; set; }

public string Email { get; set; }

public string Linkedin { get; set; }

public string Phone { get; set; }

public Address Address { get; set; }
}
}

0 comments on commit cfb6b4c

Please sign in to comment.