Esempio n. 1
0
        public async Task <IActionResult> CreateApplication(Apply apply)
        {
            if (CurrentUserId != apply.ApplicantId)
            {
                return(BadRequest(apply));
            }
            var result = await _applicationManager.CreateApplication(apply);

            if (result.Succeeded)
            {
                return(Ok(result));
            }
            else
            {
                return(BadRequest(result));
            }
        }
 public IHttpActionResult Create(CreateApplicationDto dto)
 {
     return(CallBusinessLogicAction(() => _manager.CreateApplication(dto, User.Identity.GetUserId())));
 }