Exemple #1
0
        public int SubmitBrideMaids(int UserID, BrideAndMaidBO bridemaid)
        {
            BrideAndMaid bridemaids = new BrideAndMaid();

            ObjectMapper.Map(bridemaid, bridemaids);
            return(WeddingRepository.SubmitBrideMaids(UserID, bridemaids));
        }
        public ActionResult BrideMaids(int weddingID)
        {
            BrideAndMaidBO bridemaid = new BrideAndMaidBO();

            bridemaid.WeddingID = weddingID;
            return(View(bridemaid));
        }
Exemple #3
0
        public BrideAndMaidBO GetBrideDetailsByID(int brideMaidID)
        {
            BrideAndMaidBO bride = new BrideAndMaidBO();

            ObjectMapper.Map(WeddingRepository.GetBrideDetailsByID(brideMaidID), bride);
            bride.strDateofBirth = Convert.ToDateTime(bride.DateofBirth).ToString("dd-MMM-yyyy");
            bride.Imageurl       = bride.Imageurl.Replace("{D}", AppUtil.GetAppSettings(AspectEnums.ConfigKeys.USERFOLDER).ToString())
                                   .Replace("{0}", bride.BrideAndMaidID.ToString());
            //if (bride.IsBride == false && bride.RelationWithBride > 0)
            //    bride.strRelationWithBride = GetWeddingCommonFieldDisplayText(Convert.ToInt32(bride.RelationWithBride), "Relation");
            //else
            //    bride.strRelationWithBride = "Bride";

            return(bride);
        }