示例#1
0
        public static long UploadImage(Guid loggedUserId, byte[] image)
        {
            SaplingsSaveDetails data = new SaplingsSaveDetails();

            data.Address        = string.Empty;
            data.IsExists       = true;
            data.Latitude       = default(decimal);
            data.Longitude      = default(decimal);
            data.NextActionText = string.Empty;
            data.TreeId         = 1;
            data.NickName       = string.Empty;

            var saplingId = BLSapling.Save(data, loggedUserId);

            BLSapling.SaveSaplingImages(saplingId, image);
            return(saplingId);
        }
示例#2
0
 public static List <SaplingViewModal> GetSaplings(Guid loggedUserId, decimal latitude, decimal longitude, bool isAll = true)
 {
     return(BLSapling.GetSaplings(loggedUserId, latitude, longitude, isAll));
 }
示例#3
0
 public static SaplingDetailViewModal GetSapling(long id, Guid loggedUserId)
 {
     return(BLSapling.GetSapling(id, loggedUserId));
 }
示例#4
0
 public static long SaveSapling(SaplingsSaveDetails data, Guid loggedUserId)
 {
     return(BLSapling.Save(data, loggedUserId));
 }