20 lines
452 B
C#
20 lines
452 B
C#
using Microsoft.AspNetCore.Mvc;
|
|
|
|
namespace Crm.Core.WebApi.Controllers
|
|
{
|
|
public class UserController : BaseController
|
|
{
|
|
private readonly IUserDomain _userDomain;
|
|
public UserController(IUserDomain userDomain)
|
|
{
|
|
_userDomain = userDomain;
|
|
}
|
|
|
|
[HttpGet]
|
|
public async Task<CrmUserDto> GetCrmUser(int eid)
|
|
{
|
|
return await _userDomain.GetCrmUser(eid);
|
|
}
|
|
}
|
|
}
|