public async Task <IHttpActionResult> PostSalesOrderDetailEntity(
            [FromBody] SalesOrderDetailEntity item)
        {
            try
            {
                if (item == null)
                {
                    return(BadRequest());
                }

                await Task.Run(() => Hub.Clients.All.TransformSalesOrderDetailEntity(item));

                return(Ok());
            }
            catch (Exception ex)
            {
                return(InternalServerError(ex));
            }
        }
Ejemplo n.º 2
0
		/// <summary>Konvertira entitet u business object.</summary>
		protected SalesOrderDetail(SalesOrderDetailEntity entity)
			: base(entity)
		{
		}
Ejemplo n.º 3
0
		/// <summary>Po potrebi konvertira entity u business objekt.</summary>
		public static SalesOrderDetail ConvertEntityToBusinessObject(SalesOrderDetailEntity entity)
		{
			SalesOrderDetail bizobj = entity as SalesOrderDetail;
			if (bizobj == null)
				bizobj = new SalesOrderDetail(entity);

			return bizobj;
		}