Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
 public static List <SaplingViewModal> GetSaplings(Guid loggedUserId, decimal latitude, decimal longitude, bool isAll = true)
 {
     return(BLSapling.GetSaplings(loggedUserId, latitude, longitude, isAll));
 }
Ejemplo n.º 3
0
 public static SaplingDetailViewModal GetSapling(long id, Guid loggedUserId)
 {
     return(BLSapling.GetSapling(id, loggedUserId));
 }
Ejemplo n.º 4
0
 public static long SaveSapling(SaplingsSaveDetails data, Guid loggedUserId)
 {
     return(BLSapling.Save(data, loggedUserId));
 }