예제 #1
0
        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);
        }
예제 #2
0
 public async Task <bool> DeleteReplicateMaterialAsync(DeleteReplicateMaterialRequestArgs requestArgs)
 {
     return(await repository.DeleteReplicateMaterialAsync(requestArgs));
 }
예제 #3
0
        public async Task <IHttpActionResult> DeleteReplicateMaterial([FromBody] DeleteReplicateMaterialRequestArgs requestArgs)
        {
            var result = await materialService.DeleteReplicateMaterialAsync(requestArgs);

            return(Ok(result));
        }