8:37 AM 0 0
Response model

Response model

  Blazor |  May 22021

Namespace: BlazorIndexedDb.Models

    /// 
/// Response object for the commands
///

public class ResponseJsDb
{
///
/// Transaction result
///

public bool Result { get; set; }
///
/// Transaction message
///

public string Message { get; set; }
}

///
/// Return a result from the transaction
///

public record CommandResponse(bool Result, string Message, List< ResponseJsDb > Response);

This model is used on the response from the actions Insert, Update and Delete. If you send a list of items will receive a list with the responses.



0 Guest reviews

 
 
 

File