public class Customer
    {
        [ExplicitKey]
        public int Id { get; set; }
        [Write(false)]
        public string FullName { get; set; }
        public string Username { get; set; }
        public string Email { get; set; }
        public string EmailToRevalidate { get; set; }
        public string SystemName { get; set; }
        public int BillingAddress_Id { get; set; }
..................
..................
        public int Add(Customer customer)
        {
            using (IDbConnection conn = Connection)
            {
                var result = conn.InsertAsync(customer).Result; // need to fix this it is return 0 because of the explicitkey attribue on ID.
                return result;
            }
        }
I want Add() method to return the Id that was actually inpute ie which is in customer object. Or else I would like to return the whole object. But I need to know if the insert was successfull or not.
Is there a way to check if InsertAsync() Success = true ??
 
    