Ejemplo n.º 1
0
        public IHttpActionResult UnLinkAccountRole(Guid accountCode, Guid roleCode)
        {
            try
            {
                accountApp.UnLinkAccountRole(accountCode, roleCode, base.IsMainAdmin, base.ClientId);

                return(Ok());
            }
            catch (ArgumentException ex)
            {
                return(BadRequest(ex));
            }
            catch (Exception ex)
            {
                return(InternalServerError(ex));
            }
        }