public async Task <OdooResult <bool> > UpdateRangeAsync(IOdooCreateModel model, long[] ids, OdooContext context = null)
 {
     return(await OdooClient.UpdateRangeAsync(model, ids, context));
 }
        public static async Task <OdooResult <long> > CreateAsync(OdooConfig odooConfig, int userUid, IOdooCreateModel model)
        {
            var request = OdooRequestModel.Create(odooConfig, userUid, model.OdooTableName(), model);
            var result  = await CallAndDeserializeAsync <long[]>(request);

            return(result.Succeed ? result.ToResult(result.Value.FirstOrDefault()) : OdooResult <long> .FailedResult(result));
        }
 public async Task <OdooResult <long> > CreateAsync(IOdooCreateModel model, OdooContext context = null)
 {
     return(await OdooClient.CreateAsync(model, context));
 }
        public static async Task <OdooResult <bool> > UpdateRangeAsync(OdooConfig odooConfig, int userUid, IOdooCreateModel model, long[] ids)
        {
            var tableName = model.OdooTableName();
            var request   = OdooRequestModel.Update(odooConfig, userUid, tableName, ids, model);

            return(await CallAndDeserializeAsync <bool>(request));
        }
 public async Task <OdooResult <long> > CreateAsync(IOdooCreateModel model)
 {
     return(await ExecuteWitrAccesDenideRetryAsync(userUid => CreateAsync(_config, userUid, model)));
 }
 public static async Task <OdooResult <bool> > UpdateAsync(OdooConfig odooConfig, int userUid, IOdooCreateModel model, long id)
 {
     return(await UpdateRangeAsync(odooConfig, userUid, model, new[] { id }));
 }
 public async Task <OdooResult <bool> > UpdateRangeAsync(IOdooCreateModel model, long[] ids)
 {
     return(await ExecuteWitrAccesDenideRetryAsync(userUid => UpdateRangeAsync(_config, userUid, model, ids)));
 }
 public async Task <OdooResult <bool> > UpdateRangeAsync(IOdooCreateModel model, long[] ids)
 {
     return(await OdooClient.UpdateRangeAsync(model, ids));
 }
 public async Task <OdooResult <bool> > UpdateAsync(IOdooCreateModel model, long id)
 {
     return(await UpdateRangeAsync(model, new[] { id }));
 }
 public async Task <OdooResult <long> > CreateAsync(IOdooCreateModel model)
 {
     return(await OdooClient.CreateAsync(model));
 }
 public async Task<OdooResult<bool>> UpdateAsync(IOdooCreateModel model, long id, OdooContext context = null)
 {
     return await UpdateRangeAsync(model, new[] { id }, SelectContext(context , Config.Context));
 }
 public static async Task<OdooResult<long>> CreateAsync(OdooConfig odooConfig, int userUid, IOdooCreateModel model, OdooContext context = null)
 {
     var request = OdooRequestModel.Create(odooConfig, userUid, model.OdooTableName(), model, context);
     var result = await CallAndDeserializeAsync<long>(request);
     return result.Succeed ? result.ToResult(result.Value) : OdooResult<long>.FailedResult(result);
 }
 public async Task<OdooResult<long>> CreateAsync(IOdooCreateModel model, OdooContext context = null)
 {
     return await ExecuteWitrAccesDenideRetryAsync(userUid => CreateAsync(Config, userUid, model, SelectContext(context , Config.Context)));
 }
 public async Task<OdooResult<bool>> UpdateRangeAsync(IOdooCreateModel model, long[] ids, OdooContext context = null)
 {
     return await ExecuteWitrAccesDenideRetryAsync(userUid => UpdateRangeAsync(Config, userUid, model, ids, SelectContext(context , Config.Context)));
 }