Exemple #1
0
        public static IEnumerable <Dto.Scope> GetSlackScopes()
        {
            var scopeBusiness = new ScopeBusiness();

            var scopes = scopeBusiness.All();

            return(scopes);
        }
Exemple #2
0
 public async Task <IActionResult> InsertScopeBusiness([FromBody] List <ScopeBusinessBindModel> scopeBusiness)
 {
     foreach (var item in scopeBusiness)
     {
         var newScope = new ScopeBusiness()
         {
             NameVI = item.NameVI,
             NameEN = item.NameEN
         };
         await unitOfWork.GetRepository <ScopeBusiness>().InsertAsync(newScope);
     }
     return(ApiResponder.RespondSuccessTo(HttpStatusCode.Ok, "Insert OK!"));
 }