Beispiel #1
0
 public IActionResult UpdateShipmentComment(ShipmentCommentUpdate shipmentcomment)
 {
     try
     {
         return(new JsonResult(ShipmentBAL.UpdateShipmentComment(shipmentcomment)));
     }
     catch (Exception ex)
     {
         return(StatusCode(StatusCodes.Status500InternalServerError, "Failed to update Shipment Comment"));
     }
 }
Beispiel #2
0
        public ShipmentComment UpdateShipmentComment(ShipmentCommentUpdate shipmentcomment)
        {
            using (SqlConnection connection = new SqlConnection(DefaultConnection))
            {
                DynamicParameters p = new DynamicParameters();
                p.Add("shipmentcommentid", shipmentcomment.ShipmentCommentID);
                p.Add("comment", shipmentcomment.Comment);

                ShipmentComment result = connection.Query <ShipmentComment>("spUpdateShipmentComment", p, commandType: CommandType.StoredProcedure).Single();

                return(result);
            }
        }
Beispiel #3
0
 public ShipmentComment UpdateShipmentComment(ShipmentCommentUpdate shipmentcomment)
 {
     return(ShipmentDAL.UpdateShipmentComment(shipmentcomment));
 }