Ejemplo n.º 1
0
        public async Task <IActionResult> Post(long projectId, [FromBody] CreateSubscriptionRequest request)
        {
            _editContext.Subscriptions.Add(new Subscription(projectId, request.Name, request.Phone, request.Email, request.Sum));
            await _editContext.SaveAsync();

            return(NoContent());
        }
 public Task SaveChangesAsync()
 => _editContext.SaveAsync();
Ejemplo n.º 3
0
 public async Task SaveChangesAsync()
 {
     await _editContext.SaveAsync();
 }
Ejemplo n.º 4
0
 public Task SaveChangesAsync()
 {
     return(_editContext.SaveAsync());
 }