public static IEnumerable <Dto.Scope> GetSlackScopes() { var scopeBusiness = new ScopeBusiness(); var scopes = scopeBusiness.All(); return(scopes); }
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!")); }