public async Task <bool> DeleteReplicateMaterialAsync(DeleteReplicateMaterialRequestArgs requestArgs)
        {
            await DbContext.ExecuteNonQueryAsync(DataConstants.PR_DELETE_REPLICATED_MATERIAL, CommandType.StoredProcedure, args =>
            {
                args.Add("@TestID", requestArgs.TestID);
                args.Add("@MaterialID", requestArgs.MaterialID);
                args.Add("@WellID", requestArgs.WellID);
            });

            return(true);
        }
Beispiel #2
0
 public async Task <bool> DeleteReplicateMaterialAsync(DeleteReplicateMaterialRequestArgs requestArgs)
 {
     return(await repository.DeleteReplicateMaterialAsync(requestArgs));
 }
Beispiel #3
0
        public async Task <IHttpActionResult> DeleteReplicateMaterial([FromBody] DeleteReplicateMaterialRequestArgs requestArgs)
        {
            var result = await materialService.DeleteReplicateMaterialAsync(requestArgs);

            return(Ok(result));
        }