Example #1
0
        public JsonResponse <OutletProfileDTO> GetOutletProfile(long userID, long storeID)
        {
            JsonResponse <OutletProfileDTO> response = new JsonResponse <OutletProfileDTO>();

            try
            {
                ExceptionEngine.AppExceptionManager.Process(() =>
                {
                    OutletProfileDTO profile = StoreBusinessInstance.GetOutletProfile(userID, storeID);
                    if (profile != null)
                    {
                        profile.ACH = "10%";
                        //profile.MTDPurchase = 100;
                        //profile.MTDSale = 200;
                        //profile.Target = 300;
                    }
                    response.SingleResult = profile;

                    response.IsSuccess = true;
                }, AspectEnums.ExceptionPolicyName.ServiceExceptionPolicy.ToString());
            }
            catch (Exception ex)
            {
                response.Message = ex.Message;
            }
            return(response);
        }
Example #2
0
        /// <summary>
        /// Method to get selected outlet profile details
        /// </summary>
        /// <param name="userID">user primary ID</param>
        /// <param name="storeID">store ID</param>
        /// <returns>returns outlet entity instance</returns>
        public OutletProfileDTO GetOutletProfile(long userID, long storeID)
        {
            OutletProfileDTO olProfile = new OutletProfileDTO();

            ObjectMapper.Map(StoreRepository.GetOutletProfile(userID, storeID), olProfile);
            return(olProfile);
        }